/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package LiveReservations.control.mocks;

import LiveReservations.control.info.RegisterClientInfo;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author tony
 */
public class RegisterClientMock {
    
    private final List<RegisterClientInfo> clients;

    public RegisterClientMock() {
        this.clients = new ArrayList<>();
    }

    public boolean submitNewClient(RegisterClientInfo clientInfo) {   
        if(clientInfo.getClient().getUsername().equalsIgnoreCase("exists"))
        {
            return false;
        }
        else
        {
            return this.clients.add(clientInfo);
        }
    }

   
    }
    
    
    

